package cn.ekgc.carddemo.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Student {
    public Student() {

    }

    public Student(Integer id, String name, String gender, Date born, String degree, String tel, String addr) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.born = born;
        this.degree = degree;
        this.tel = tel;
        this.addr = addr;
    }

    public Student(String name, String gender, Date born, String degree, String tel, String addr) {
        this.name = name;
        this.gender = gender;
        this.born = born;
        this.degree = degree;
        this.tel = tel;
        this.addr = addr;
    }

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column student.id
     *
     * @mbg.generated Thu Jul 11 14:18:41 CST 2019
     */
    private Integer id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column student.name
     *
     * @mbg.generated Thu Jul 11 14:18:41 CST 2019
     */
    private String name;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column student.gender
     *
     * @mbg.generated Thu Jul 11 14:18:41 CST 2019
     */
    private String gender;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column student.born
     *
     * @mbg.generated Thu Jul 11 14:18:41 CST 2019
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date born;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column student.degree
     *
     * @mbg.generated Thu Jul 11 14:18:41 CST 2019
     */
    private String degree;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column student.tel
     *
     * @mbg.generated Thu Jul 11 14:18:41 CST 2019
     */
    private String tel;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column student.addr
     *
     * @mbg.generated Thu Jul 11 14:18:41 CST 2019
     */
    private String addr;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column student.id
     *
     * @return the value of student.id
     *
     * @mbg.generated Thu Jul 11 14:18:41 CST 2019
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column student.id
     *
     * @param id the value for student.id
     *
     * @mbg.generated Thu Jul 11 14:18:41 CST 2019
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column student.name
     *
     * @return the value of student.name
     *
     * @mbg.generated Thu Jul 11 14:18:41 CST 2019
     */
    public String getName() {
        return name;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column student.name
     *
     * @param name the value for student.name
     *
     * @mbg.generated Thu Jul 11 14:18:41 CST 2019
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column student.gender
     *
     * @return the value of student.gender
     *
     * @mbg.generated Thu Jul 11 14:18:41 CST 2019
     */
    public String getGender() {
        return gender;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column student.gender
     *
     * @param gender the value for student.gender
     *
     * @mbg.generated Thu Jul 11 14:18:41 CST 2019
     */
    public void setGender(String gender) {
        this.gender = gender == null ? null : gender.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column student.born
     *
     * @return the value of student.born
     *
     * @mbg.generated Thu Jul 11 14:18:41 CST 2019
     */
    public Date getBorn() {
        return born;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column student.born
     *
     * @param born the value for student.born
     *
     * @mbg.generated Thu Jul 11 14:18:41 CST 2019
     */
    public void setBorn(Date born) {
        this.born = born;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column student.degree
     *
     * @return the value of student.degree
     *
     * @mbg.generated Thu Jul 11 14:18:41 CST 2019
     */
    public String getDegree() {
        return degree;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column student.degree
     *
     * @param degree the value for student.degree
     *
     * @mbg.generated Thu Jul 11 14:18:41 CST 2019
     */
    public void setDegree(String degree) {
        this.degree = degree == null ? null : degree.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column student.tel
     *
     * @return the value of student.tel
     *
     * @mbg.generated Thu Jul 11 14:18:41 CST 2019
     */
    public String getTel() {
        return tel;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column student.tel
     *
     * @param tel the value for student.tel
     *
     * @mbg.generated Thu Jul 11 14:18:41 CST 2019
     */
    public void setTel(String tel) {
        this.tel = tel == null ? null : tel.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column student.addr
     *
     * @return the value of student.addr
     *
     * @mbg.generated Thu Jul 11 14:18:41 CST 2019
     */
    public String getAddr() {
        return addr;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column student.addr
     *
     * @param addr the value for student.addr
     *
     * @mbg.generated Thu Jul 11 14:18:41 CST 2019
     */
    public void setAddr(String addr) {
        this.addr = addr == null ? null : addr.trim();
    }
}